<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/22
  Time: 10:46
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Title</title>
</head>
<body>
<div></div>
<table border="1" width="800">
    <tr>
        <td colspan="8" align="right"><a href="AddCar.jsp">添加新车</a></td>
    </tr>
    <tr>
        <td>编号</td>
        <td>车名</td>
        <td>车型</td>
        <td>价格</td>
        <td>用户</td>
        <td></td>
    </tr>
    <c:forEach items="${MyCarList}" var="car">
        <tr>
            <td>${car.cid}</td>
            <td>${car.cname}</td>
            <td>${car.ctype}</td>
            <td>${car.cprice}</td>
            <td>${car.cadmin}</td>

            <td><a href="amendCar?cid=${car.cid}">编辑</a>|<a href="deleteCar?cid=${car.cid}">删除</a>
                |<a href="../picture/AddCarPicture?cid=${car.cid}">图片</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
